<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	String basePath = request.getScheme()+"://"+request.getServerName()
		+ ":"+ request.getServerPort() + request.getContextPath() + "/";
%>
<!DOCTYPE html>
<html>
<head>
<base href="<%=basePath %>">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<title>管理员登录</title>
<link rel="stylesheet" href="layui/css/layui.css">
<link rel="stylesheet" type="text/css" href="css/login.css" />
</head>
<body>
	<!-- 居中的容器 -->
	<div class="layui-container">
		<div class="layui-row">
			<form class="layui-form layui-col-md4 layui-col-md-offset4"
				action="admin/login.do" method="post">
				<h1>用户登录</h1>
				<p>Vmall-网上商城-后台管理员管理系统</p>
				<span id="error">${error }</span>
				<div class="layui-form-item">
					<label class="layui-icon layui-icon-username"></label> <input
						class="layui-input" type="text" name="username" placeholder="用户名" />
				</div>
				<div class="layui-form-item">
					<label class="layui-icon layui-icon-password"></label> <input
						class="layui-input" type="password" name="password"
						placeholder="密码" />
				</div>
				<div class="layui-form-item">
					<div class="layui-col-md7">
						<label class="layui-icon layui-icon-vercode"></label> <input
							class="layui-input" type="text" name="code" placeholder="验证码" />
					</div>
					<div class="layui-col-md5 code-parent">
						<img title="点击刷新" class="code" src="admin/code.do" />
					</div>
				</div>
				<div class="layui-form-item">
					<input type="checkbox" name="remember" title="记住密码"
						lay-skin="primary">
				</div>
				<div class="layui-form-item">
					<button class="layui-btn layui-btn-fluid" type="submit">登录</button>
				</div>
				<div class="layui-form-item login-other">
					<span>第三方账号登入</span> 
					<a href="javascript:;"><i class="layui-icon layui-icon-login-qq"></i></a>
					<a href="javascript:;"><i class="layui-icon layui-icon-login-wechat"></i></a> 
					<a href="javascript:;"><i class="layui-icon layui-icon-login-weibo"></i></a>
				</div>
			</form>
		</div>
	</div>

	<script src="layui/layui.js" type="text/javascript" charset="utf-8"></script>
	<script type="text/javascript" src="js/jquery-3.5.1.js"></script>
	<script type="text/javascript">
		$(".code").click(function(){
			
			$(this).attr("src", "admin/code.do?t="+(new Date().getTime()));
			
		});
	</script>
	<script>
		layui.use(["form"],function(){
			
		});
	</script>

</body>
</html>